#include <iostream>
#include "TaskQueue.h"
#include "Producter.h"
#include "Consumer.h"
#include <thread>
using std::cout;
using std::endl;
using std::thread;

void test0(){
    TaskQueue que(5);
    Producter pro;
    Consumer con;
    thread pro1(&Producter::produce,&pro,std::ref(que));
    thread con1(&Consumer::consume,&con,std::ref(que));

    pro1.join();
    con1.join();

}

int main(int argc, char * argv[])
{
    test0();
    return 0;
}


